const baseApi = import.meta.env.VITE_APP_BASE_API

const api = {
    "fileUploadURL": "/admin/file/upload",
    "fileDownloadURL": baseApi + "/admin/file/download",
    "reqGenerateCaptchaURL": "/admin/captcha/generate",
    "getRoutesURL": "/admin/menu/routes",
    "getUserInfoURL": "/admin/account/info",
    "reqUsernameLoginURL": "/admin/login/username",
    "reqEmailLoginURL": "/admin/login/email",
    "logoutURL": "/admin/logout",
    "reqAllMenuTreeURL": "/admin/menu/all/tree",
    "reqMenuByMenuTypeURL": "/admin/menu/menuType",
    "reqAddMenuURL": "/admin/menu",
    "reqUpdateMenuURL": "/admin/menu",
    "reqRemoveBatchMenuURL": "/admin/menu/batch",
    "reqFullCheckMenuIdByRoleIdURL": "/admin/menu/roleId",
    "reqGetAllAccountURL": "/admin/account/all",
    "reqAccountListByConditionURL": "/admin/account/like",
    "reqAddAccountURL": "/admin/account",
    "reqUpdateAccountURL": "/admin/account",
    "reqUpdateSelfPasswordURL":"/admin/account/updateSelf/password",
    "reqUpdateBindEmailURL":"/admin/account/bindEmail",
    "reqRemoveBatchAccountByIdsURL": "/admin/account/batch",
    "reqResetPasswordByIdURL": "/admin/account/resetPassword",
    "reqRoleIdsByAccountIdURL": "/admin/account/roles",
    "reqGiveRoles4AccountURL": "/admin/account/giveRoles",
    "reqForgetPasswordURL": "/admin/account/forgetPassword",
    "reqAllRolesURL": "/admin/role/all",
    "reqRoleListByConditionURL": "/admin/role/like",
    "reqAddRoleURL": "/admin/role",
    "reqGiveMenuURL": "/admin/role/giveMenu",
    "reqRemoveRoleByRoleIdURL": "/admin/role",
    "reqSendEmailURL": "/admin/email/common",
    "reqSendEmail4LoginURL": "/admin/email/login",
    "reqSendEmail4BindEmailURL": "/admin/email/bindEmail",
    "reqSendEmail4ForgetPasswordURL": "/admin/email/forgetPassword",
    "reqSysLogPageURL":"/admin/sysLog/page",
    "reqSysLogRemoveBatchURL":"/admin/sysLog/remove/batch",
    "reqSysLogClearAllURL":"/admin/sysLog/clearAll"
}
export default api
